package net.edu_soft.ec.asset.pojo.bo;

import net.edu_soft.ec.asset.pojo.Label;
import net.edu_soft.ec.asset.pojo.vo.SchoolVO;

import java.util.Date;
import java.util.List;

public class ProductBO {

    /**
     * 产品 id
     */
    private Integer productId;

    /**
     * 厂家id
     */
    private Integer factoryId;

    /**
     * 厂家名称
     */
    private String factoryName;

    /**
     * 产品名
     */
    private String name;

    /**
     * 初始展示图路径
     */
    private String url;

    /**
     * 高校集合
     */
    private List<SchoolVO> schools;

    /**
     * 标签集合
     */
    private List<Label> labels;

    /**
     * 关注数
     */
    private Integer attention;

    public ProductBO() {

    }

    public ProductBO(Integer productId, Integer factoryId, String factoryName, String name, String url, List<SchoolVO> schools, List<Label> labels, Integer attention) {
        this.productId = productId;
        this.factoryId = factoryId;
        this.factoryName = factoryName;
        this.name = name;
        this.url = url;
        this.schools = schools;
        this.labels = labels;
        this.attention = attention;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getFactoryId() {
        return factoryId;
    }

    public void setFactoryId(Integer factoryId) {
        this.factoryId = factoryId;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<SchoolVO> getSchools() {
        return schools;
    }

    public void setSchools(List<SchoolVO> schools) {
        this.schools = schools;
    }

    public List<Label> getLabels() {
        return labels;
    }

    public void setLabels(List<Label> labels) {
        this.labels = labels;
    }

    public Integer getAttention() {
        return attention;
    }

    public void setAttention(Integer attention) {
        this.attention = attention;
    }

    @Override
    public String toString() {
        return "ProductBO{" +
                "productId=" + productId +
                ", factoryId=" + factoryId +
                ", factoryName='" + factoryName + '\'' +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", schools=" + schools +
                ", labels=" + labels +
                ", attention=" + attention +
                '}';
    }
}
